//
//  ExpressionNode.h
//  MarketDataAnalyzer
//
//  Created by jiro on 10/01/23.
//  Copyright 2010 jiro music. All rights reserved.
//

#import <Cocoa/Cocoa.h>


enum ExpressionNodeType
{
	ExpressionNode_Value,
	
	ExpressionNode_Plus,

	ExpressionNode_Minus,

	ExpressionNode_Multiple,

	ExpressionNode_Divide,

	ExpressionNode_Modulous,
};

@interface ExpressionNode : NSObject {

	ExpressionNodeType type;
	
	ExpressionNode* lhs;
	
	ExpressionNode* rhs;
	
	NSString* value;
	
}

@property (assign) ExpressionNodeType type;

@property (assign) ExpressionNode* lhs;
	
@property (assign) ExpressionNode* rhs;

@property (assign) NSString* value;

- (NSString*) toString;

/// 値にプリフィクスを付けて文字列化
- (NSString*) toStringWithValuePrefix: (NSString*) prefix; 

@end
